<?php $form=$this->beginWidget('CActiveForm', array(
        'id'=>'comment-form',
        'enableClientValidation'=>true,
        'clientOptions'=>array(
            'validateOnSubmit'=>true,
        ),
        'enableAjaxValidation'=>false,
        'htmlOptions' => array('class' => 'stdform stdformsmall')
    )); ?>

<div class="row-fluid">
    <div class="span12">
        <h4 class="widgettitle">Thông tin comment</h4>
        <div class="widgetcontent">                
            <div class="par control-group">
                <?php echo $form->labelEx($model,'title', array('class' => 'control-label')); ?>
                <div class="controls">
                    <?php echo $form->textField($model,'title',array('maxlength'=>255, 'class' => 'input')); ?>
                    <?php echo $form->error($model,'title');?>
                </div>
            </div>
            <div class="par control-group">
                <?php echo $form->labelEx($model,'content', array('class' => 'control-label')); ?>
                <div class="controls">
                    <?php echo $form->textArea($model,'content',array('style' => 'width: 500px; height: 200px')); ?>
                    <?php echo $form->error($model,'content');?>
                </div>
            </div>
            <div class="par control-group">
                <label class="control-label">User</label>
                <div class="controls">
                    <?php echo $model->user->name;?>
                </div>
            </div>
            <div class="par control-group">
                <label class="control-label">Chi nhánh</label>
                <div class="controls">
                    <?php echo $model->branch->name;?>
                </div>
            </div>
            <?php if($model->comment):?>
            <div class="par control-group">
                <label class="control-label">Trở lời comment</label>
                <div class="controls">
                    <?php echo $model->comment->content;?>
                </div>
            </div>
            <?php endif?>
            <div class="par control-group">
                <label class="control-label"></label>
                <div class="controls">
                    <button class="btn btn-info btn-large" type="submit">Cập nhật</button>
                </div>
            </div>
        </div>
    </div>
</div>

<?php $this->endWidget(); ?>